package com.ruoyi.project.business.nativedevice.service;

import java.util.List;
import com.ruoyi.project.business.nativedevice.entity.NativeDevice;
import com.ruoyi.project.business.nativedevice.request.ListNativeDeviceRequest;
import com.ruoyi.project.business.nativedevice.request.AddNativeDeviceRequest;
import com.ruoyi.project.business.nativedevice.response.NativeDeviceResponse;

/**
 * 设备入网记录Service接口
 * 
 * @author ${author}
 * @date 2024-07-26
 */
public interface INativeDeviceService {
    /**
     * 查询设备入网记录
     *
     * @param id 设备入网记录ID
     * @return 设备入网记录
     */
    public NativeDevice selectNativeDeviceById(Long id);

    /**
     */
    public List<NativeDeviceResponse> selectNativeDeviceList(ListNativeDeviceRequest request, Long tenantId);


    public int insertNativeDevice(AddNativeDeviceRequest request, Long operatorId, Long tenantId);

    /**
     * 修改设备入网记录
     * 
     * @return 结果
     */
    public int updateNativeDevice(NativeDevice entity, Long operatorId, Long tenantId);

    /**
     * 批量删除设备入网记录
     * 
     * @return 结果
     */
    public int deleteNativeDeviceByIds(Long[] ids, Long operatorId, Long tenantId);

    /**
     * 删除设备入网记录信息
     * 
     * @return 结果
     */
    public int deleteNativeDeviceById(Long id, Long operatorId, Long tenantId);

    void saveOrUpdateDevice(String ip, String mac, String deviceCode);
}
